package com.ruoyi.monitormanage.service.impl;

import com.ruoyi.common.core.domain.Parameter;
import com.ruoyi.common.core.feign.ModulesSystemFeign;
import com.ruoyi.monitormanage.domain.TestLogResult;
import com.ruoyi.monitormanage.domain.TestLogdetailsResult;
import com.ruoyi.monitormanage.mapper.TTestLogMapper;
import com.ruoyi.monitormanage.service.TTestLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TTestLogServiceImpl implements TTestLogService {

    @Autowired
    public ModulesSystemFeign systemFeign;
    @Autowired
    private TTestLogMapper tTestLogMapper;
    @Override
    public List<TestLogResult> gettestlogforday(Parameter parameter) {
        parameter = systemFeign.setParameter(parameter);
        return tTestLogMapper.gettestlogforday(parameter);
    }

    @Override
    public List<TestLogdetailsResult> gettestlogdetails(Parameter parameter) {
        parameter = systemFeign.setParameter(parameter);
        return tTestLogMapper.gettestlogdetails(parameter);
    }
}
